On 21 Jul 2018 21:47:42 GMT, Eli the Bearded wrote:
> I've been using Unix since before Linux existed. Having a command line
> on my phone is a feature.
Understood. We all are old men, it seems, where I first started programming
in Fortran well before Fortran 77 even existed. We all predate the personal
computer by too many years! :)
I cut my teeth on the DEC equipment of the 80s after the IBM equipment of
the 60s and 70s, and then to Masscomp and then to Sun for a long while
(SunOS and then Solaris), and then to Windows and Mac stuff, and then back
to Linux, and then back to Windows and Mac, and then back to Linux, etc.
The one nice thing that is always there, is "vi", although I couldn't find
the all-important escape key in the Termux emulation. :(
> That technique examines images for pixel or subpixel (eg, just the red
> channel of a pixel) hardware imperfections. By resampling to a
> considerably smaller image (I typically use 50%), hardware issues are
> averaged out. It probably still could work with a large number of
> images, but it wouldn't be easy.
It was revealing that the researchers felt highly confident that a single
high resolution photo would fingerprint almost any smartphone. Good to know
when I'm robbing banks and posting the pics on the net! :)
Thanks for that pointer. I'll download it, as vi is my editor of choice on
all modern platforms (e.g., Windows, Linux, and Android anyway - I try not
to attempt real work on iOS if I can help it because iOS is so primitive in
what it can do compared to what Android does so easily).
> I think ships as busybox, but I've upgraded the shell and various tools.
> I like vim a lot better than busybox's vi.
Vim. Vi. It's all the same to me. My finger muscles know the commands
intimately, where even my Usenet reader is actually just vi wrapped within
a ton of vpn and telnet shells.
I live and breath vi every day on all modern platforms, where I jokingly
state to my friends that the true test of usability of a smartphone is
whether you can edit using vi while driving! :)
> It's a real Linux. A strange one, due to the constraints of running as
> an application on a phone, but I have installed software from source,
> compiling the C on the phone: eg trn and a terminal mode Tetris clone:
>
https://github.com/Eli-the-Bearded/notint
This is good to know where the power of Linux commands are tremendous,
where I run a lot of shell scripts (i.e., stringing commands together to
automate stuff). I like that your solution easily shows up in the YouTube
"share" button, which means it should show up in any "share" button, which
means we can post process a lot of things once we get good at it.
> I believe Termux defaults to using the back button for escape. It's VERY
> easy to never need ~, control characters are more of an issue
> (particularly <ctrl-c>) and the pipe (|) character.
Yeah, Linux uses a bunch of characters a *lot* such as the pipe, and the
escape key (for vi), and the tilde (although $HOME works just as well).
> I'm going to guess you want quotes around that. A URL like
> "
https://www.youtube.com/watch?v=Dgp9MPLEAqA" would be fine, but
> if there is an & before the v=, you're going to have trouble.
> I use termux-url-opener to send links to my personal network bookmark
> service. It uses curl to POST the link to the save endpoint. The URL is
> indeed in "$1".
Thanks for that suggestion. I was simply following the tutorial at:
<
https://www.reddit.com/r/linux/comments/66fh4f/what_do_you_use_termux_on_android_for/>
Where I modified what didn't work for me.
I'll add that (the phone is charging right now as I used it up during the
day) and let you know how it worked. It was only a "hello world" test where
I just wanted to see how the YouTube app could be tweaked to download a URL
via Termux, where I already have "NewPIpe" which downloads any YouTube
video anyway (so I already have the functionality).
<
https://f-droid.org/en/packages/org.schabi.newpipe/>
Since NewPipe doesn't work on iOS nor Windows or Linux, I do use the
youtube-dl and youtube-dl.exe on those platforms, so I was familiar with
what it does, which is why I chose it as the "hello world" testcase.
For example, the Windows software is located here:
https://youtube-dl.org/downloads/latest/youtube-dl.exe
Where you also need ffmpeg for some conversions:
http://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-20170711-0780ad9-win64-static.zip
And where the most basic download use model is:
C:\> youtube-dl.exe
https://youtu.be/7QaABa6DFIo
> It's basically a perl module, use CPAN.
> perl -MCPAN -eshell
> install Image::ExifTool
>
> I forget what I did to set-up CPAN, it was a long time ago. You might
> need a compiler installed for that package. I suspect it's not Pure
> Perl ("PP").
Thanks. I think what I'll do first, is find a tutorial that is up to date
(the reddit one had too many steps that failed) and then get it to work. In
general, when I'm playing with a new tool, I try to get things that are
known to be working to work first, so that I can get the hang of the use
model. And then I get ideas for how to branch out from there.
Thanks for noticing that I'm always purposefully helpful in that I try to
improve our tribal knowledge, as you did yourself, in every post.
>> Thanks for adding technical value to our overall tribal knowledge.
>
> Happy to share
Thanks for being a good netizen!